<?php

namespace Kaeru\Model\Dao;

use \Kaeru\Model\AbstractModel;

interface IDao
{
    /**
     * Creates a model.
     */
    public function create();

    /**
     * Returns a model by specifying an id.
     */
    public function get($id);

    /**
     * Saves a model.
     */
    public function save(AbstractModel $model);

    /**
     * Deletes a model.
     */
    public function delete(AbstractModel $model);

}